#!/bin/sh

if [ -z "$PREFIX" ]; then
	PREFIX=""
	ETCPREFIX=""
	MANPREFIX="/usr"
elif [ "$PREFIX" = "/usr" ]; then
	ETCPREFIX=""
	MANPREFIX="/usr"
else
	PREFIX="/usr/local"
	ETCPREFIX="/usr/local"
	MANPREFIX="/usr/local"
fi


cat > config.mk << HERE
# Ax version
VERSION=0.0.3

# Path
PREFIX=${PREFIX}
ETCPREFIX=${ETCPREFIX}
MANPREFIX=${MANPREFIX}

ECHO?=0
ifeq (\$(ECHO), 0)
	CECHO=@
else
	CECHO=
endif
HERE
